package ReentrantLock;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

public class TestReentrantLock4 {

    static ReentrantLock lock = new ReentrantLock();

    public static void main(String[] args) {
        //创建一个新的条件变量（休息室）
//        Condition condition1 = lock.newCondition();
//        Condition condition2 = lock.newCondition();
//
//        lock.lock();
//        //进入休息室等待
//        condition1.await();
//
//        condition1.signal();
//        condition1.signalAll();
    }
}
